﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PD_NQ_Select_Products_Window.aspx.cs" Inherits="Product_PD_NQ_Select_Products_Window" %>


<%@ Register Assembly="WX.WMS.Common" Namespace="WX.WMS.Common" TagPrefix="cc1" %>
<%@ Import Namespace="WX.WMS.DataModel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>选择盘点商品</title>
    <link href="../css/base.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JavaScript/function.js"></script>
</head>
<body>
    <form id="form1" runat="server" target="_self">
    <div align="center">
        <table border="0" width="100%">
            <tr>
                <td class="title" style="width: 869px">
                    选择盘点商品</td>
                <td>
                </td>
            </tr>
            <tr style="width:900px;">
                
                <td style="width: 879px">
                    关键字 &nbsp;
                    <asp:TextBox ID="Key" runat="server" Width="79px" ></asp:TextBox>条形码 &nbsp;
                    <asp:TextBox ID="barcode" runat="server" Width="79px" ></asp:TextBox>
                    库位:&nbsp;<asp:DropDownList ID="Stock" runat="server" DataTextField="STOCK_NAME" DataValueField="STOCK_ID">
                    </asp:DropDownList>
                    区位:&nbsp;<asp:DropDownList ID="Area" runat="server"  DataTextField="AREA_NAME" DataValueField="AREA_ID">
                    </asp:DropDownList>
                    层:&nbsp;<asp:DropDownList ID="Floor" runat="server" DataTextField="FloorName" DataValueField="FloorID">
                    </asp:DropDownList>
                    &nbsp; &nbsp; &nbsp; &nbsp;<asp:ImageButton ID="searchButton" runat="server" ImageUrl="~/images/sub_search.gif" OnClick="searchButton_Click" />
                    &nbsp; &nbsp; 
                    <asp:Label ID="Label1" runat="server" Text="没有您要的信息" Visible="False" ForeColor="Red"></asp:Label>
                    &nbsp;
                    &nbsp;&nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td s>
                    &nbsp; &nbsp; &nbsp; &nbsp;
                    <cc1:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False" 
                        AllowPaging="true" PageSize="5"
                        BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
                        BorderWidth="1px" ShowSelectBox="true"
                        CellPadding="4" Width="638px" OnRowDeleting="SearchResult_RowDeleting"  
                        DataKeyNames="ID" onpageindexchanging="SearchResult_PageIndexChanging">
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <Columns>
<%--<asp:TemplateField><HeaderTemplate>
<asp:CheckBox runat="server" ID="checkall" onclick="CheckAll(this)"></asp:CheckBox>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox runat="server" ID="CheckItem"></asp:CheckBox>
</ItemTemplate>

<HeaderStyle CssClass="CheckTemplateStyle"></HeaderStyle>

<ItemStyle CssClass="CheckTemplateStyle"></ItemStyle>
</asp:TemplateField>--%>
                            <asp:TemplateField HeaderText="商品名称" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).T_PRODUCT.NAME%>
                            </ItemTemplate>                 
                            </asp:TemplateField>         
                            <asp:TemplateField HeaderText="条形码" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).T_PRODUCT_DETAIL.BAR_CODE%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                            <asp:TemplateField HeaderText="大件数" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).PACKET_QTY%>
                            </ItemTemplate>                 
                            </asp:TemplateField>      
                            <asp:TemplateField HeaderText="小件数" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).PACKET_QTY2%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                            <asp:TemplateField HeaderText="净重" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).NET_WEIGHT%>
                            </ItemTemplate>                 
                            </asp:TemplateField>  
                            <asp:TemplateField HeaderText="毛重" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).GROSS_WEIGHT%>
                            </ItemTemplate>                 
                            </asp:TemplateField>        
                            <asp:TemplateField HeaderText="库位" >
                             <ItemStyle  Width="100px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).T_FLOOR.T_STOCK_AREA.T_STOCK.STOCK_NAME%>
                            </ItemTemplate>                 
                            </asp:TemplateField>                                                                                     
                            <asp:TemplateField HeaderText="区位" >
                             <ItemStyle  Width="100px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).T_FLOOR.T_STOCK_AREA.AREA_NAME%>
                            </ItemTemplate>                 
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="层" >
                             <ItemStyle  Width="100px"/>
                            <ItemTemplate>                 
                                    <%# ((T_STORE)Container.DataItem).T_FLOOR.FloorName%>
                            </ItemTemplate>                 
                            </asp:TemplateField>                                                                                                                                                                                                                                                                                                                                
                        </Columns>
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
                    </cc1:GridView>
                    <asp:CheckBox ID="cbSelectAll" runat="server"  Text="搜索结果全部添加" />
                    &nbsp;
                    <asp:Button ID="btnAdd" runat="server" Text="添加所选商品" onclick="btnAdd_Click" />
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td align="center" style="height: 17px; width: 769px;">
                    &nbsp; &nbsp;
                </td>
                <td style="height: 17px">
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

